ActionCardUserConsent
The ActionCardImage is used to add an image (jpg/png), SVG or a lottie to the card's body.
Usage#
<ActionCardUserConsent />
Props#
| Name | Type | Default | Description |
|---|---|---|---|
checked | boolean | undefined | Is the switch button checked or not |
text | string | 'Må vi gemme disse informationer, så du hurtigere kan klare andre udfordringer?' | Text next to the switch button |
onChange | function (checked: boolean) => any | undefined | Callback function for when the switch is pressed with the new state sent as the argument |